package org.sixtynine.stock.model;

public class ColModel {
	private String name;
	private String index;
	private String align;
	private String formatter;
	private String sorttype;
	private String formatoptions;
	private String suffix;

	private int width;

	private boolean editable;
	private String autowidth;

	private boolean hidden;

	public ColModel() {
	}

	public ColModel(String name) {
		this.name = name;
		this.index = name;
		this.editable = false;
	}

	public ColModel(String name, String index) {
		this.name = name;
		this.index = index;
		this.editable = false;
	}

	public ColModel(String name, String formate, String align) {
		this.name = name;
		this.index = name;
		this.editable = false;
		this.align = align;
		this.formatter = formate;
	}

	public ColModel(String name, boolean hidden) {
		this.name = name;
		this.index = name;
		this.editable = false;
		this.hidden = hidden;
	}

	public ColModel(String name, String formate, String align, String autowidth) {
		this.name = name;
		this.index = name;
		this.editable = false;
		this.align = align;
		this.formatter = formate;
		this.autowidth = autowidth;
	}

	public ColModel(String name, String formate, String align, int width) {
		this.name = name;
		this.index = name;
		this.editable = false;
		this.align = align;
		this.formatter = formate;
		this.width = width;
	}

	public ColModel(String name, String formate, String align, int width,
			String formateOption) {
		this.name = name;
		this.index = name;
		this.editable = false;
		this.align = align;
		this.formatter = formate;
		this.width = width;
		this.formatoptions = formateOption;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean editable) {
		this.editable = editable;
	}

	public String getAlign() {
		return align;
	}

	public void setAlign(String align) {
		this.align = align;
	}

	public String getFormatter() {
		return formatter;
	}

	public void setFormatter(String formatter) {
		this.formatter = formatter;
	}

	public String getAutowidth() {
		return autowidth;
	}

	public void setAutowidth(String autowidth) {
		this.autowidth = autowidth;
	}

	public String getSorttype() {
		return sorttype;
	}

	public void setSorttype(String sorttype) {
		this.sorttype = sorttype;
	}

	public String getFormatoptions() {
		return formatoptions;
	}

	public void setFormatoptions(String formatoptions) {
		this.formatoptions = formatoptions;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

}
